package com.lonely.web.controller.inventory;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lonely.common.core.domain.api.R;
import com.lonely.inventory.domain.dto.stockup.flowwater.StockUpInventoryFlowWaterPageQueryDto;
import com.lonely.inventory.domain.vo.stockup.flowwater.StockUpInventoryFlowWaterPageQueryVo;
import com.lonely.inventory.service.IStockUpInventoryFlowWaterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : 黄志标
 * @date: 2025/9/19 10:06
 * @description: 备货库存流水请求处理器
 */
@RestController
@RequestMapping("/inventoryManager/stockUpInventoryFlowWater")
@Api(tags = "库存管理/备货库存")
public class StockUpInventoryFlowWaterController {

    @Autowired
    private IStockUpInventoryFlowWaterService stockUpInventoryFlowWaterService;

    /**
     * 分页查询
     *
     * @param queryDto
     * @return
     */
    @PostMapping("/page")
    @ApiOperation(value = "分页查询")
    public R<Page<StockUpInventoryFlowWaterPageQueryVo>> page(@RequestBody StockUpInventoryFlowWaterPageQueryDto queryDto) {
        return R.data(this.stockUpInventoryFlowWaterService.page(queryDto));
    }

}
